<%--
  Created by IntelliJ IDEA.
  User: Tong-dev
  Date: 2015-12-25
  Time: 18:05
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>

    <meta name="layout" content="main"/>
    <title>result</title>
</head>

<body>
reuslt =${result}
${destDocAddr}

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">


        <g:each in="${destDocAddr}" var="item" status="i">
            <div class="item ${i==0?'active':''}">
                <img src="${createLink(action: 'watermark',params: [srcImgUrl:item.pageAddr.toString().replace("10.16.101.4:8001","app.cmhk.com:8801")])}" alt="${item.pageNum}">
                <div class="carousel-caption">
                    ...
                </div>
            </div>

        </g:each>


    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
</body>
</html>